const data = [
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', component: './login/userLogin' },
    ],
  },
  {
    path: '/blank',
    component: '../layouts/BlankLayout',
    routes: [{ path: '/blank/modifyPassword', component: './login/modifyPassword' }],
  },
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    authority: ['admin', 'user'],
    routes: [
      { path: '/', redirect: '/file/index' },
      { name: '首页', path: '/file/index', component: './basic/homePage', icon: 'home' },
      { path: '/exception/403', component: './Exception/403' },
      { path: '/exception/404', component: './Exception/404' },
      { path: '/exception/500', component: './Exception/500' },
      {
        path: '/basic',
        name: '系统管理',
        icon: 'setting',
        routes: [
          { name: '系统角色', path: '/basic/role', component: './basic/role' },
          { name: '用户管理', path: '/basic/users', component: './basic/users' },
        ],
      },
      {
        path: '/file',
        name: '档案管理',
        icon: 'file-text',
        routes: [
          { name: '员工信息', path: '/file/info', component: './file/info' },
          { name: '信息汇总', path: '/file/gather', component: './file/gather' },
          { name: '岗位管理', path: '/file/job', component: './file/job' },
        ],
      },
    ],
  },
];
export default data;
